package abc.model;

public class SheetHeaderModel {
    private String header;

    public String getHeader() {
        return header;
    }

    public void setHeader(String header) {
        this.header = header;
    }

    public String getField() {
        return field;
    }

    public void setField(String field) {
        this.field = field;
    }

    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
    }

    public String getType() {
        switch (type) {
            case "":
            case "字符":
                return "string";
            case "金额":
            case "货币":
                return "decimal";
            case "整数":
                return "int";
            case "ID":
                return "bigint";
            case "日期":
            case "时间":
                return "date";
        }
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    private String field;
    private int index;
    private String type;
}
